package com.samshow.app;

import com.samshow.config.DataBaseConfiguration;
import com.samshow.config.WebSecurityConfigurer;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Import;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2017/1/13.
 */
@SpringBootApplication
@RestController
@EnableZuulProxy
@EnableRedisHttpSession
@Import(value={DataBaseConfiguration.class,WebSecurityConfigurer.class})
public class GatewayApplication {
    public static void main(String[] args) {
        new SpringApplicationBuilder(GatewayApplication.class).web(true).run(args);
    }


}
